<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<!--
    /：表示http://ip:端口
    没有/，就是相对路径
-->
    <form action="html" method="post">
        <input type="text" name="account" placeholder="账号" value="haha">
        <input type="password" name="password" placeholder="密码" value="123">
        <button>提交</button>
    </form>
    <script src="js/jquery-3.5.1.js" type="application/javascript"></script>
    <script>
        //ready方法是当页面加载完毕后，才会执行
        // $(document).ready(function () {
        //   $("button").click(function () {
        //     var account = $("input[name='account']").val();
        //     var password = $("input[name='password']").val();
        //     $.post("html", {
        //       account: account,
        //       password: password
        //     }, function (result) {
        //       console.log(result);
        //     });
        //   });
        // });
    </script>
</body>
</html>